unit Unit_SaveMHT;

interface

uses
  Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
  StdCtrls, SaveMHT;

type
  Tfrm_SaveMHT = class(TForm)
    FBtn_Normal: TButton;
    FBtn_CallUsingThread: TButton;
    procedure FBtn_NormalClick(Sender: TObject);
    procedure FBtn_CallUsingThreadClick(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  frm_SaveMHT: Tfrm_SaveMHT;

implementation

{$R *.DFM}
procedure Tfrm_SaveMHT.FBtn_NormalClick(Sender: TObject);
begin
  SaveToMHT('http://www.eggcentric.com/', 'C:\TEST.mht');
  ShowMessage('Done');
end;

procedure Tfrm_SaveMHT.FBtn_CallUsingThreadClick(Sender: TObject);
begin
  SaveToMHT_InCOThread('http://www.eggcentric.com/', 'C:\TEST.mht');
  ShowMessage('Done');
end;

end.

